package com.gitee.magic.jdbc.persistence.source.jdbc.script.converter;

import com.gitee.magic.jdbc.persistence.source.jdbc.script.def.BaseColumnFieldScriptDef;

/**
 * @author start
 */
public class FieldDecimal extends BaseColumnFieldScriptDef {
	
	@Override
	public String buildScripts(int length, int dp) {
		return String.valueOf(getDataType())+"("+length+","+dp+")";
	}

	@Override
	public String getDataType() {
		return "DECIMAL";
	}

	@Override
	public int getLength() {
		return 10;
	}

	@Override
	public int getDecimal() {
		return 2;
	}

}
